package com.example.angle;

/**
 * 三角函数
 * @author hej
 * @date 2024/7/4 10:22
 */
public class Angle {
    public static void main(String[] args) {
        double degrees = 30;
        double radians = Math.toRadians(degrees);
        double s = Math.sin(radians);
        double c = Math.cos(radians);
        System.out.println(s + "+" + c );

        System.out.println("WWN".toLowerCase());

        double radians2 = Math.round(Math.asin(0.5) * 10000/10000);
        double deg2 = Math.toDegrees(radians2);
        System.out.println(radians2 + "+" + deg2);
    }
}
